﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebVideo.Models
{
    public class IndexModel
    {
     
       
        public static IEnumerable<EntityVideo> Video()
        {
            dbVideoDataContext db = new dbVideoDataContext();
            var query = from p in db.EntityVideos
                        select p;
            return query.ToList().Take(9);
        }
    }
}